.conversion-history-container {
  padding: 0;
  min-height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

/* 页面头部 */
.page-header {
  padding: 60px 40px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.page-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-header p {
  font-size: 1.2rem;
  color: #718096;
  margin: 0;
}

/* 历史内容 */
.history-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

/* 统计信息区域 */
.statistics-section {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: #f7fafc;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: #edf2f7;
}

.stat-item.success {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.1));
}

.stat-item.error {
  background: linear-gradient(135deg, rgba(229, 62, 62, 0.1), rgba(197, 48, 48, 0.1));
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 8px;
}

.stat-item.success .stat-value {
  color: #38a169;
}

.stat-item.error .stat-value {
  color: #e53e3e;
}

.stat-label {
  font-size: 1rem;
  color: #718096;
  font-weight: 500;
}

/* 过滤区域 */
.filter-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.filter-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 1.2rem;
}

.form-select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  min-width: 150px;
}

.form-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sort-controls {
  display: flex;
  gap: 8px;
}

.filter-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline-primary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.btn-outline-secondary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-2px);
}

.btn-outline-danger {
  background: white;
  color: #e53e3e;
  border: 2px solid #e53e3e;
}

.btn-outline-danger:hover {
  background: #e53e3e;
  color: white;
  transform: translateY(-2px);
}

/* 历史记录列表 */
.history-list {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.history-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f7fafc;
  border-radius: 16px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: #edf2f7;
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.history-item:last-child {
  margin-bottom: 0;
}

.item-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
}

.format-icon {
  font-size: 1.5rem;
}

.arrow {
  color: #718096;
  font-weight: bold;
}

.item-details {
  flex: 1;
}

.item-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.item-meta {
  display: flex;
  gap: 16px;
  color: #718096;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.item-error {
  color: #e53e3e;
  font-size: 0.9rem;
  margin-top: 4px;
}

.item-status {
  margin-left: auto;
}

.status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.success {
  background: #f0fff4;
  color: #38a169;
  border: 2px solid #9ae6b4;
}

.status-badge.error {
  background: #fed7d7;
  color: #e53e3e;
  border: 2px solid #feb2b2;
}

.status-badge.processing {
  background: #e6fffa;
  color: #319795;
  border: 2px solid #81e6d9;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.item-actions .btn {
  padding: 8px 12px;
  font-size: 0.8rem;
  min-width: auto;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

.empty-state p {
  color: #718096;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* 无结果状态 */
.no-results {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

.no-results p {
  color: #718096;
  margin-bottom: 24px;
}

/* 错误信息 */
.error-message {
  margin-bottom: 30px;
}

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
}

.alert-error {
  background: #fed7d7;
  color: #e53e3e;
  border: 2px solid #feb2b2;
}

.alert-icon {
  font-size: 1.2rem;
}

/* 加载状态 */
.loading-state {
  text-align: center;
  padding: 80px 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-state p {
  color: #718096;
  font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 20px 30px;
  }
  
  .page-header h2 {
    font-size: 2rem;
  }
  
  .history-content {
    padding: 20px;
  }
  
  .statistics-section,
  .filter-section,
  .history-list,
  .empty-state,
  .no-results {
    padding: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .search-box {
    min-width: auto;
  }
  
  .sort-controls {
    justify-content: center;
  }
  
  .filter-actions {
    justify-content: center;
  }
  
  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .item-icon {
    align-self: center;
  }
  
  .item-status,
  .item-actions {
    align-self: flex-end;
  }
  
  .item-meta {
    flex-direction: column;
    gap: 4px;
  }
  
  .btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
} 